package ijij41.togetherTrain.recruit;

import ijij41.togetherTrain.R;
import ijij41.togetherTrain.common.AbstractSearchTrainActivity;
import ijij41.togetherTrain.participate.SearchTrainParticipateActivity;
import ijij41.togetherTrain.participate.TrainListParticipateActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

public class SearchTrainRecruitActivity extends AbstractSearchTrainActivity {

	
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setLabelTitle("생성");
	}
	
	
	@Override
	protected void search_action() {

		Intent trainListActivity = new Intent(SearchTrainRecruitActivity.this,
				// SearchTrainListParticipateActivity.class);
						TrainListRecruitActivity.class);

				/*
				 * trainListActivity.putExtra("time","10:00");
				 * trainListActivity.putExtra("startStation","서울");
				 * trainListActivity.putExtra("endStation","부산");
				 * trainListActivity.putExtra("numPerson","1");
				 */

	
		
		
				trainListActivity.putExtra("date", search_date);
				trainListActivity.putExtra("time", search_time);
				trainListActivity.putExtra("startStation", search_startStation);
				trainListActivity.putExtra("endStation", search_endStation);
				trainListActivity.putExtra("numRecruitMember", search_person);

				startActivity(trainListActivity);
	}

//	public void onCreate(Bundle savedInstanceState) {
//		super.onCreate(savedInstanceState);
//
//		initComponent();
//	}
//
//	private void initComponent() {
//
//		TextView tv_title = (TextView) findViewById(R.id.tv_title);
//		tv_title.setText("aaaa");
//
//	}

}
